<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">

		{include file="common/head" /}
		{block name="style"}{/block}
	</head>
	<body>
		{include file="common/top" /}
		{include file="common/search" /}
		{include file="common/nav" /}

		<link href="__SHOP_DEFAULT__/css/member.css" rel="stylesheet" type="text/css">
		<link href="__SHOP_DEFAULT__/custom/css/member-new.css" rel="stylesheet" type="text/css">

		<script type="text/javascript" src="__SITE_RESOURCE__/js/member.js"></script>
		<script type="text/javascript" src="__SITE_RESOURCE__/js/ToolTip.js"></script>

		<script>
		//sidebar-menu
		$(document).ready(function() {
		    $.each($(".side-menu > a"), function() {
		        $(this).click(function() {
		            var ulNode = $(this).next("ul");
		            if (ulNode.css('display') == 'block') {
		            	$.cookie(COOKIE_PRE+'Mmenu_'+$(this).attr('key'),1);
		            } else {
		            	$.cookie(COOKIE_PRE+'Mmenu_'+$(this).attr('key'),null);
		            }
					ulNode.slideToggle();
						if ($(this).hasClass('shrink')) {
							$(this).removeClass('shrink');
						} else {
							$(this).addClass('shrink');
						}
		        });
		    });
			$.each($(".side-menu-quick > a"), function() {
		        $(this).click(function() {
		            var ulNode = $(this).next("ul");
					ulNode.slideToggle();
						if ($(this).hasClass('shrink')) {
							$(this).removeClass('shrink');
						} else {
							$(this).addClass('shrink');
						}
		        });
		    });
		});
		
		</script>
		
		<div class="ncm-container">
		  <div class="ncm-header">
		    <div class="ncm-header-top">
		      <div class="ncm-member-info">
		        <div class="avatar">
		        	<a href="{:url('member/Information/avatar')}" title="修改头像">
		        		<img src="{$member_info['member_avatar']|default='__UPLOAD_PATH__/shop/common/default_user_portrait.gif'}">
		          		<div class="frame"></div>
		          	</a>
		          	<?php if (intval($message_num) > 0){ ?>
		          		<a href="{:url('member/Message/message')}" class="new-message" title="新消息"><?php echo intval($message_num); ?></a>
		          	<?php }?>
		        </div>
		        <dl>
		          <dt>昵称：<a href="{:url('member/Information//member')}" title="修改资料"><?php echo $member_info['member_name'];?></a></dt>
		        <!--    <dd>会员等级：
		         <?php if ($member_info['level_name']){ ?>
		         <div class="nc-grade-mini" style="cursor:pointer;" onclick="javascript:go('<?php echo url('shop/pointgrade/index');?>');"><?php echo $member_info['level_name'];?>会员</div>
		         <?php } ?>
		       </dd> -->
		         <!--  <dd>账户安全：
		           <div class="SAM">
		           	<a href="{:url('/member/Security/index')}" title="安全设置">
		             <?php if ($member_info['security_level'] <= 1) { ?>
		             <div id="low" class="SAM-info"><span><em></em></span><strong>低</strong></div>
		             <?php } elseif ($member_info['security_level'] == 2) {?>
		             <div id="normal" class="SAM-info"><span><em></em></span><strong>中</strong></div>
		             <?php }else {?>
		             <div id="high" class="SAM-info"><span><em></em></span><strong>高</strong></div>
		             <?php } ?>
		             </a> </div>
		         </dd> -->
		          <!-- <dd>用户财产：
		            <div class="user-account">
		              <ul>
		                <li id="pre-deposit"><a href="{:url('Predeposit/pd_log_list')}" title="我的余额：￥<?php echo $member_info['available_predeposit'];?>"> <span class="icon"></span> </a> </li>
		                <li id="points"><a href="{:url('Member_points/index')}" title="我的积分：<?php echo $member_info['member_points'];?>分"> <span class="icon"></span></a> </li>
		                <li id="voucher"><a href="{:url('Member_voucher/index')}" title="我的代金券：<?php echo $member_info['voucher_count'];?>张"> <span class="icon"></span></a> </li>
		                <li id="envelope"><a href="{:url('Member_redpacket/index')}" title="我的红包：<?php echo $member_info['redpacket_count'];?>张"> <span class="icon"></span></a></li>
		              </ul>
		            </div>
		          </dd> -->
		        </dl>
		      </div>
		      <div class="ncm-trade-menu">
		        <div class="line-bg"></div>
		        <dl class="trade-step-01">
		          <dt>我的收藏</dt>
		          <dd></dd>
		        </dl>
		        <ul class="trade-function-01">
		          <li><a href="{:url('member/Favoritegoods/index')}"><span class="tf01"></span>
		            <h5>商品</h5>
		            </a> </li>
		          <li><a href="{:url('member/Favoritestore/index')}"><span class="tf02"></span>
		            <h5>店铺</h5>
		            </a> </li>
		          <li><a href="{:url('member/Goodsbrowse/index')}"><span class="tf03"></span>
		            <h5>足迹</h5>
		            </a> </li>
		        </ul>
		        <dl class="trade-step-02">
		          <dt>我的订单</dt>
		          <dd></dd>
		        </dl>
		        <ul class="trade-function-02">
		          <li><a href="{:url('member/Order/index', array('state_type' => 'state_new'))}">
		            <?php if ($order_tip['order_nopay_count'] > 0) {?>
		            <sup><?php echo $order_tip['order_nopay_count']?></sup>
		            <?php }?>
		            <span class="tf04"></span>
		            <h5>待付款</h5>
		            </a> </li>
		               <li><a href="{:url('member/Order/index', array('state_type' => 'state_pay'))}">
		            <?php if ($order_tip['order_pay_count'] > 0) {?>
		            <sup><?php echo $order_tip['order_pay_count']?></sup>
		            <?php }?>
		            <span class="tf05"></span>
		            <h5>待发货</h5>
		            </a> </li>
		          <li><a href="{:url('member/Order/index', array('state_type' => 'state_send'))}">
		            <?php if ($order_tip['order_noreceipt_count'] > 0) {?>
		            <sup><?php echo $order_tip['order_noreceipt_count']?></sup>
		            <?php }?>
		            <span class="tf06"></span>
		            <h5>待收货</h5>
		            </a> </li>
		          <!-- <li><a href="{:url('/member/Order/index', array('state_type' => 'state_notakes'))}">
		            <?php if ($order_tip['order_notakes_count'] > 0) {?>
		            <sup><?php echo $order_tip['order_notakes_count']?></sup>
		            <?php }?>
		            <span class="tf06"></span>
		            <h5>待自提</h5>
		            </a> </li> -->
		          <li><a href="{:url('member/Order/index', array('state_type' => 'state_noeval'))}">
		            <?php if ($order_tip['order_noeval_count'] > 0) {?>
		            <sup><?php echo $order_tip['order_noeval_count']?></sup>
		            <?php }?>
		            <span class="tf07"></span>
		            <h5>待评价</h5>
		            </a> </li>
		        </ul>
		        <dl class="trade-step-03">
		          <dt>售后服务</dt>
		          <dd></dd>
		        </dl>
		        <ul class="trade-function-03">
		          <li>
					  <a href="{:url('member/Refund/index')}">
						  <?php if ($order_tip['order_refund_count'] > 0) {?>
						  <sup><?php echo $order_tip['order_refund_count']?></sup>
						  <?php }?>
						  <span class="tf08"></span>
						  <h5>退款</h5>
					  </a>
				  </li>
		          <li>
					  <a href="{:url('member/Returns/index')}">
						  <span class="tf09"></span>
						  <?php if ($order_tip['order_return_count'] > 0) {?>
						  <sup><?php echo $order_tip['order_return_count']?></sup>
						  <?php }?>
						  <h5>退货</h5>
					  </a>
				  </li>
		          <!--<li><a href="{:url('/member/Complain/index',array('select_complain_state' => '1'))}"><span class="tf10"></span>
		            <h5>投诉</h5>
		            </a> </li>-->
		        </ul>
		      </div>
		    </div>
		    <div class="ncm-header-nav">
		      <ul class="nav-menu">
		        <li><a href="{:url('member/Shop/index')}" class="current">我的商城</a></li>
		        <li class="set"><a href="{:url('member/Member/index')}">用户设置<i></i></a>
		          <div class="sub-menu">
		            <dl>
		              <dt><a href="{:url('member/Security/index')}" style="color: #3AAC8A;">安全设置</a></dt>
		              <dd><a href="{:url('member/Security/auth')}?type=modify_pwd">修改登录密码</a></dd>
		              <dd><a href="{:url('member/Security/auth')}?type=modify_mobile">手机绑定</a></dd>
		              <!--<dd><a href="{:url('/member/Security/auth', array('type' => 'modify_email'))}">邮件绑定</a></dd>-->
		              <!-- <dd><a href="{:url('/member/Security/auth', array('type' => 'modify_paypwd'))}">支付密码</a></dd> -->
		            </dl>
		            <dl>
		              <dt><a href="{:url('member/Information/member')}" style="color: #EA746B">个人资料</a></dt>
		              <dd><a href="{:url('member/Address/address')}">收货地址</a></dd>
		              <dd><a href="{:url('member/Information/avatar')}">修改头像</a></dd>
		              <!--<dd><a href="{:url('member/Message/setting')}">消息接受设置</a></dd>-->
		            </dl>
		            <dl>
		              <!--<dt><a href="{:url('member/Predeposit/pd_log_list')}" style="color: #FF7F00">账户财产</a></dt>-->
		              <!--<dd><a href="{:url('member/Predeposit/recharge_add')}">余额充值</a></dd>-->
		              <!--<dd><a href="{:url('member/Voucher/voucher_binding')}">领取代金券</a></dd>-->
		              <!--<dd><a href="{:url('member/Redpacket/rp_binding')}">领取红包</a></dd>-->
		            </dl>
		            <dl>
		              <dt><a href="{:url('member/Memberbind/qqbind')}" style="color: #398EE8">账号绑定</a></dt>
		              <dd><a href="{:url('member/Memberbind/qqbind')}">QQ绑定</a></dd>
		              <!--<dd><a href="{:url('member/Bind/sinabind')}">微博绑定</a></dd>-->
		              <dd><a href="{:url('member/Memberbind/weixinbind')}">微信绑定</a></dd>
		              <!--<dd><a href="{:url('member/Sharemanage/index')}">分享绑定</a></dd>-->
		            </dl>
		          </div>
		        </li>
		        <!--<li><a href="{:url('member/Snshome/index')}">个人主页<i></i></a>
		          <div class="sub-menu">
		            <dl>
		              <dd><a href="{:url('member/Snshome/index')}">新鲜事</a></dd>
		              <dd><a href="{:url('member/Snsalbum/index')}">个人相册</a></dd>
		              <dd><a href="{:url('member/Snshome/shareglist')}">分享商品</a></dd>
		              <dd><a href="{:url('member/Snshome/storelist')}">分享店铺</a></dd>
		            </dl>
		          </div>
		        </li>-->
		        <li><a href="javascript:;">其他应用<i></i></a>
		          <div class="sub-menu">
		            <dl>
		            	<dd><a href="{:url('member/Memberarticle/article_list')}">文章发布</a></dd>
		              	<dd><a href="{:url('circle/Pcenter/my_group')}">我的圈子</a></dd>
		            </dl>
		          </div>
		        </li>
		      </ul>
		      <div class="notice">
		        <ul class="line">
		          <?php if (is_array($system_notice) && !empty($system_notice)) { ?>
		          <?php foreach ($system_notice as $v) { ?>
		          <li><a <?php if($v['article_url']!=''){?>target="_blank"<?php }?> href="<?php if($v['article_url']!='')echo $v['article_url'];else echo url('home/Article/show', array('article_id'=>$v['article_id']));?>"><?php echo $v['article_title']?>
		            <time>(<?php echo date('Y-m-d',$v['article_time']);?>)</time>
		            </a> </li>
		          <?php } ?>
		          <?php } ?>
		        </ul>
		      </div>
		      <script>
		$(function() {
		    var _wrap = $('ul.line');
		    var _interval = 2000;
		    var _moving;
		    _wrap.hover(function() {
		        clearInterval(_moving);
		    },
		    function() {
		        _moving = setInterval(function() {
		            var _field = _wrap.find('li:first');
		            var _h = _field.height();
		            _field.animate({
		                marginTop: -_h + 'px'
		            },
		            600,
		            function() {
		                _field.css('marginTop', 0).appendTo(_wrap);
		            })
		        },
		        _interval)
		    }).trigger('mouseleave');
		});
		</script> 
		    </div>
		  </div>
		  <div class="left-layout">
		    <ul id="sidebarMenu" class="ncm-sidebar">
		      <?php if (!empty($menu_list)) {?>
		      <?php foreach ($menu_list as $key => $value) {?>
		      <li class="side-menu"><a href="javascript:void(0)" key="<?php echo $key;?>" <?php if (cookie('Mmenu_'.$key) == 1) echo 'class="shrink"';?>>
		        <h3><?php echo $value['name'];?></h3>
		        </a>
		        <?php if (!empty($value['child'])) {?>
		        <ul <?php if (cookie('Mmenu_'.$key) == 1) echo 'style="display:none"';?>>
		          <?php foreach ($value['child'] as $key => $val) {?>
		          <li <?php if ($key == $act) {?>class="selected"<?php }?>><a href="<?php echo $val['url'];?>"><?php echo $val['name'];?></a></li>
		          <?php }?>
		        </ul>
		        <?php }?>
		      </li>
		      <?php }?>
		      <?php }?>
		    </ul>
		  </div>
		  <div class="right-layout">
		  	{block name="content"}{/block}
		  </div>
		  <div class="clear"></div>
		</div>

		
		
		{include file="common/footer" /}
		
		{block name="script"}{/block}
	</body>
</html>
